home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / sparcmgr / src.zoo / src / defines.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-17  |  3.0 KB  |  68 lines

  1. /*                        Copyright (c) 1987 Bellcore
  2.  *                            All Rights Reserved
  3.  *       Permission is granted to copy or use this program, EXCEPT that it
  4.  *       may not be sold for profit, the copyright notice must be reproduced
  5.  *       on copies, and credit should be given to Bellcore where it is due.
  6.  *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  7.  */
  8. /*    $Header: defines.h,v 1.1 89/03/17 08:21:02 sau Exp $
  9.     $Source: /m1/mgr.new/src/RCS/defines.h,v $
  10. */
  11. static char    h_defines_[] = "$Source: /m1/mgr.new/src/RCS/defines.h,v $$Revision: 1.1 $";
  12.  
  13. /* potentially changable defines for mgr */
  14.  
  15. #define MAXWIN         24        /* Maximum number of windows */
  16.                     /* < getdtablesize()-5 */
  17. #define MAXCLIENT    25        /* max number of client windows */
  18. #define MAXESC        20        /* max number of leading esc. digits */
  19. #define TEXT_COUNT    MAXESC-1    /* text download index */
  20. #define MAXBUF        80        /* max chars put to window per cycle */
  21. #define MAXSHELL    128        /* max chars read from shell at once */
  22. #define POLL_INT    0        /* us's of pause at each select */
  23. #define MAXNAME        35        /* max argv[0] length */
  24. #define MAXTTY        35        /* max tty device name length */
  25. #define MAXFONT        100        /* # of different fonts */
  26. #define MAXMENU        20        /* max number of menus per window */
  27. #define MAXBITMAPS    50        /* max number of bitmaps per window */
  28. #define MAXITEMS    200        /* 2 * max # of menu items */
  29. #define MAXEVENTS    22        /* max number of events, -4 thru 17,
  30.                     see event.h */
  31. #define MIN_Y        1        /* minimum # of rows in a window */
  32. #define MIN_X        5        /* min # of columns in a window */
  33. #define MAX_PATH    100        /* max path length for font file */
  34. #define GMAX        1000L        /* max graphics coordinate */
  35. #define MOUSE_BUFF    30        /* size of mouse input buffer */
  36. #define MSG_MODEMASK    02        /* invalid permission mask for tty */
  37.  
  38. #ifdef COLOR
  39. #define SCREEN_DEV    "/dev/fb"    /* where to find the frame buffer */
  40. #else
  41. #define SCREEN_DEV    "/dev/bwtwo0"    /* where to find the frame buffer */
  42. #endif
  43. #define MOUSE_DEV    "/dev/mouse"    /* where to find the mouse */
  44. #define TERMNAME    "mgr"        /* name of termcap entry */
  45. #define STARTFILE    ".mgrc"        /* name of mgr startup file */
  46. #define HOST        "win "        /* name of host for utmp file */
  47. #ifndef FONTDIR
  48. #  define FONTDIR        "/usr/mgr/font" /* where to find the fonts */
  49. #endif
  50. #ifndef ICONDIR
  51. #  define ICONDIR        "/usr/mgr/icon"    /* readable by all */
  52. #endif
  53. #define DEFAULT_FONT    "DEFAULT_FONT"    /* default font environ variable (full path name) */
  54. #define DUP_CHAR    '\005'        /* default dup character for DUPKEY mode */
  55.  
  56. #define MENU_FG    4            /* menu forground color table index */
  57. #define MENU_BG    6            /* menu background color table index */
  58. #define BLACK        1            /* color table index for black */
  59. #define WHITE        0            /* color table index for white */
  60.  
  61. #define BLK_BDR        2        /* thickness of border */
  62. #define WH_BDR        3        /* border gap */
  63. #define SUM_BDR        (BLK_BDR + WH_BDR)
  64. #define STRIPE        2        /* # windowless pixels on left */
  65.  
  66. #define M_QUIT        3        /* confirm quit choice */
  67. #define M_SUSPEND    1        /* suspend instead of quit */
  68.